<?php
/**
 * Created by PhpStorm.
 * User: CCA
 * Date: 2019/10/10
 * Time: 10:28
 */

namespace app\common\model;


use think\Model;

class Futoken extends Model
{
    public function addToken($data){
        $result = db('fuwu_token')->insertGetId($data);
        return $result;
    }

    public function getToken($condition){
        $result = db('fuwu_token')->where($condition)->find();
        return $result;
    }

    public function updateById($data,$id){
        return db('fuwu_token')->where('id',$id)->update($data);
    }
}